from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    path('post/<int:year>/<int:month>/<int:day>/<slug:slug>/', views.post_detail, name='post_detail'),
    path('post/create/', views.post_create, name='post_create'),
    path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
    path('post/<int:pk>/delete/', views.post_delete, name='post_delete'),
    path('category/<slug:slug>/', views.category_detail, name='category_detail'),
    path('tag/<slug:slug>/', views.tag_detail, name='tag_detail'),
    path('search/', views.search, name='search'),
    path('comment/<int:post_id>/add/', views.add_comment, name='add_comment'),
    path('reply/<int:comment_id>/add/', views.add_reply, name='add_reply'),
    path('category/create/', views.create_category, name='create_category'),
    path('tag/create/', views.create_tag, name='create_tag'),
    path('manage/taxonomies/', views.manage_taxonomies, name='manage_taxonomies'),
]
